<template>
  <div class="box">
    <div class="top">
      <img src="@/../public/img/mine/back.png" alt="" class="back" @click="$router.go(-1)">
      <b>编辑个人资料</b>
    </div>
    <section class="mine_content">
      <div class="avatar">
        <img src="@/../public/img/mine/avatar.png" alt="">
        <img src="@/../public/img/mine/avatar.png" alt="">
        <img src="@/../public/img/mine/avatar.png" alt="">
        <img src="@/../public/img/mine/avatar.png" alt="">
        <img src="@/../public/img/mine/add.png" alt="">
        <span>点击可更换图派件、 设为头像或删除，共9张</span>
      </div>
      <div class="dv" @click="edit2">
        <h2>用户名</h2>
        <p><i>20</i><i>巨蟹座</i></p>
        <p>点击编辑个人信息（如昵称、性别）</p>
      </div>
      <div class="dv">
        <h2>语音介绍</h2>
        <input type="text" placeholder="添加一段语音介绍（5~60秒）">
      </div>
      <div class="dv">
        <h2>个人签名</h2>
        <p>
          <img src="@/../public/img/mine/pen.png" alt="">
          <input type="text" placeholder="添加你的个人签名">
         </p>
      </div>
      <div class="dv">
        <h2>我的信息</h2>
        <p>
          <img src="@/../public/img/mine/msg.png" alt="">
          <input type="text" placeholder="添加行业信息">
        </p>
        <p>
          <img src="@/../public/img/mine/home.png" alt="">
          <input type="text" placeholder="添加你的家乡信息">
        </p>
      </div>
    </section>
  </div>
</template>

<script>
import Vue from 'vue'
import { Tab, Tabs, Icon } from 'vant'
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Icon)
export default {
  data () {
    return {
      active: 0
    }
  },
  methods: {
    showPopup () {
      this.show = true
    },
    edit2 () {
      this.$router.push({ path: '/quanquan/edit2' })
    }
  }
}
</script>

<style lang="scss" scoped>
@import '@/lib/reset.scss';
.box {
  @include rect(100%, 100%);
  @include flexbox();
  .top {
    @include rect(100%, 0.3rem);
    padding: 0.1rem 0 0 0.16rem;
    position: relative;
    margin-bottom: 0.2rem;
    background-color: #fff;
    img {
      width: 0.16rem;
    }
    b {
      font-size: 0.16rem;
      position: absolute;
      top: 0.1rem;
      left: 35%;
    }
  }
  section {
    @include flex();
    @include rect(100%, 100%);
    background-color: white;
    .avatar {
      width: 100%;
      @include flexbox();
      flex-wrap: wrap;
      border-bottom: 1px solid #E1E1E1;
      img {
        width: 1rem;
        height: 1rem;
        margin: 0.1rem 0 0 0.16rem;
      }
      span {
        margin-left: 0.16rem;
      }
    }
    .dv {
      height: 0.9rem;
      overflow: hidden;
      border-bottom: 1px solid #E1E1E1;
      margin: 0.1rem 0.16rem;
      padding-top: 6px;
      h2 {
        font-size:0.18rem;
        height: 0.24rem;
        margin-bottom: 0.08rem;
        span {
          font-size:0.14rem;
          font-weight: normal;
          margin-left: 0.5rem;
        }
      }
      p {
        font-size: 0.14rem;
        height: 0.24rem;
        i {
          color: #fff;
          display: block;
          text-align: center;
          float: left;
          line-height: 0.24rem;
        }
        i:nth-child(1) {
          width: 0.4rem;
          height: 0.24rem;
          background: url('~@/../public/img/person/age.png');
          background-size: 100% 100%;
        }
        i:nth-child(2) {
          width: 0.6rem;
          height: 0.24rem;
          background: url('~@/../public/img/person/star.png');
          background-size: 100% 100%;
          margin-left: 4px;
        }
        img {
          width: 12px;
          margin-right: 2px;
        }
      }
      h4 {
        margin: 0.1rem 0;
      }
      input {
        font-size: 0.14rem;
        height: 0.24rem;
        width: 95%;
        outline: none;
        border: none;
      }
    }
    .dv:nth-child(3) {
      height: 0.7rem;
    }
    .dv:nth-child(4) {
      height: 0.7rem;
    }
  }
}
</style>
